local lang_utils = require("mvc.utils.lang_utils");

local router = {

	{
		namespace = "/user",
		action = "action.user",
		result = {
			add = {
				success = "/user/add.html"
			},
			
			do_add = {
				success = "/user/add_success.html",
				fail = "/user/add.html"
			},
			
			update = {
				success = "/user/update.html"
			},
			
			do_update = {
				success = "/user/update_success.html",
				fail = "/user/update.html"
			},
			
			edit = {
				to_add = "redirect:/user/add"
			}
		}
	},
	
	{
		namespace = "/auth",
		action = "action.auth_action",
		result = {
			__ = {
				success = "/auth/{1}.html",
			}
		}
	},
	
	--[[
	{
		namespace = "/view/rewrite",
		action = "action.urlrewrite_action",
		result = {}
	}
	]]
	
};


--处理多配置文件
lang_utils.import(router, require("config.biz.app_router"));

return router;


